package com.woniuxy.prescription.dao;

import com.woniuxy.commons.entity.Prescription;
import com.woniuxy.prescription.entity.Prescription_medicine;

import java.util.List;

/**
 * @author Waves
 * @date 2022/6/8 14:08
 */
public interface PrescriptionDao {
    List<Prescription> findAll();
    List<Prescription> findByStatus(int keyPath);
    int batchDelete(int[] ids);
    int addOne(Prescription prescription);
    int updateOne(Prescription prescription);
    int deleteOne(int id);
    List<Prescription> findByContext(Prescription prescription);
    int[] findMedicineIdsByPid(int id);
    List<Prescription_medicine> findMedicine_Medicine(int[] ids);
    Prescription findById(int id);
}
